﻿<!-- THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 
 ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
 PARTICULAR PURPOSE.

 Copyright (c) Microsoft Corporation. All rights reserved -->

<Page x:Class="SDKTemplateCS.MainPage"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	d:DesignHeight="768" d:DesignWidth="1366">
	
	<Page.Resources>
		<Style x:Key="BaseStatusStyle" TargetType="TextBlock">
			<Setter Property="FontFamily" Value="Segoe UI Semilight"/>
			<Setter Property="FontSize" Value="14.667"/>
			<Setter Property="Margin" Value="0,0,0,5"/>
		</Style>
		<Style x:Key="StatusStyle" BasedOn="{StaticResource BaseStatusStyle}" TargetType="TextBlock">
			<Setter Property="Foreground" Value="Green"/>
		</Style>
		<Style x:Key="ErrorStyle" BasedOn="{StaticResource BaseStatusStyle}" TargetType="TextBlock">
			<Setter Property="Foreground" Value="Blue"/>
		</Style>
	</Page.Resources>

	<Grid x:Name="LayoutRoot" Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
		<!--App Orientation States-->
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="OrientationStates">
				<VisualState x:Name="DefaultLayout"/>
				<VisualState x:Name="Below768Layout">
					<Storyboard>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="ContentRoot">
							<DiscreteObjectKeyFrame KeyTime="0">
								<DiscreteObjectKeyFrame.Value>
									<Thickness>20,20,20,20</Thickness>
								</DiscreteObjectKeyFrame.Value>
							</DiscreteObjectKeyFrame>
						</ObjectAnimationUsingKeyFrames>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(StackPanel.Orientation)" Storyboard.TargetName="InputPanel">
							<DiscreteObjectKeyFrame KeyTime="0">
								<DiscreteObjectKeyFrame.Value>
									<Orientation>Vertical</Orientation>
								</DiscreteObjectKeyFrame.Value>
							</DiscreteObjectKeyFrame>
						</ObjectAnimationUsingKeyFrames>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.MaxWidth)" Storyboard.TargetName="ScenarioInput">
							<DiscreteObjectKeyFrame KeyTime="0" Value="250">
							</DiscreteObjectKeyFrame>
						</ObjectAnimationUsingKeyFrames>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="LegalPanel">
							<DiscreteObjectKeyFrame KeyTime="0">
								<DiscreteObjectKeyFrame.Value>
									<Thickness>0,0,10,0</Thickness>
								</DiscreteObjectKeyFrame.Value>
							</DiscreteObjectKeyFrame>
						</ObjectAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>

		<Grid x:Name="ContentRoot" Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Margin="100,20,100,20">
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="*"/>
				<RowDefinition Height="Auto"/>
			</Grid.RowDefinitions>

			<!-- Header -->
			<StackPanel x:Name="Header" Grid.Row="0">
				<StackPanel Orientation="Horizontal">
					<Image Source="images/windows-sdk.png" AutomationProperties.Name="Windows Logo"/>
					<TextBlock Text="Windows SDK Samples" VerticalAlignment="Bottom" Style="{StaticResource TitleStyle}" TextWrapping="Wrap"/>
				</StackPanel>
				<TextBlock x:Name="FeatureName" Text="Add Feature Name" Style="{StaticResource H1Style}" TextWrapping="Wrap"/>
			</StackPanel>

			<!-- Content -->
			<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Grid.Row="1" ZoomMode="Disabled">
				<Grid HorizontalAlignment="Left">
					<Grid.RowDefinitions>
						<RowDefinition Height="Auto"/>
						<RowDefinition Height="Auto"/>
						<RowDefinition Height="Auto"/>
						<RowDefinition Height="Auto"/>
						<RowDefinition Height="*"/>
					</Grid.RowDefinitions>
					<TextBlock Grid.Row="0" Text="Input" Style="{StaticResource H2Style}"/>
					<StackPanel x:Name="InputPanel" Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Left">
						<StackPanel>
							<TextBlock Text="Select Scenario:" Style="{StaticResource H3Style}" Margin="0,5,0,0"/>
							<Frame x:Name="ScenarioList" MaxWidth="250" Margin="0,5,0,0" IsTabStop="False"/>
						</StackPanel>
						<StackPanel>
							<TextBlock Margin="0,5,0,0"  Text="Description:" Style="{StaticResource H3Style}"/>
							<!-- Input Scenarios -->
							<Frame x:Name="ScenarioInput" Margin="0,5,0,0" MaxWidth="800" IsTabStop="False" />
						</StackPanel>
					</StackPanel>
					<!-- Output section -->
					<TextBlock Text="Output" Grid.Row="2"  Margin="0,25,0,20" Style="{StaticResource H2Style}" />
					<TextBlock x:Name="StatusBlock" Grid.Row="3" Margin="0,0,0,5"/>

					<!-- Output Scenarios -->
					<Frame x:Name="ScenarioOutput" Grid.Row="4" MaxWidth="1050"  IsTabStop="False"/>

				</Grid>
			</ScrollViewer>

			<!-- Footer -->
			<StackPanel x:Name="Footer" Grid.Row="2" Margin="0, 10, 0, 0" VerticalAlignment="Bottom">
				<StackPanel>
					<Image x:Name="DefaultImage" Source="images/microsoft-sdk.png" AutomationProperties.Name="Microsoft Logo" Stretch="None" HorizontalAlignment="Left"/>
					<TextBlock Style="{StaticResource FooterStyle}" Text="© Microsoft Corporation. All rights reserved."  TextWrapping="Wrap"/>
				</StackPanel>
				<StackPanel x:Name="LegalPanel" Orientation="Horizontal" Margin="0,-15,10,0" VerticalAlignment="Top" HorizontalAlignment="Right">
					<HyperlinkButton Content="Terms of use" Tag="http://www.microsoft.com/About/Legal/EN/US/IntellectualProperty/Copyright/default.aspx"
            Click="Footer_Click" VerticalAlignment="Center" />
					<TextBlock Text="|" Style="{StaticResource SeparatorStyle}" VerticalAlignment="Center" Margin="5,0,5,0"/>
					<HyperlinkButton Content="Trademarks" Tag="http://www.microsoft.com/About/Legal/EN/US/IntellectualProperty/Trademarks/EN-US.aspx"
            Click="Footer_Click" VerticalAlignment="Center" />
					<TextBlock Text="|"  Style="{StaticResource SeparatorStyle}" VerticalAlignment="Center" Margin="5,0,5,0"/>
					<HyperlinkButton Content="Privacy Statement" Tag="http://privacy.microsoft.com" Click="Footer_Click" VerticalAlignment="Center"/>
				</StackPanel>
			</StackPanel>
		</Grid>
	</Grid>
</Page>
